package com.lxl.example.provider;

import com.lxl.example.common.service.UserService;
import com.lxl.example.provider.service.impl.UserServiceImpl;
import com.lxl.lxlrpc.registry.LocalRegistry;
import com.lxl.lxlrpc.server.HttpServer;
import com.lxl.lxlrpc.server.VertxHttpServer;

public class EasyProviderExample {
    //启动消费者
    public static void main(String[] args) {

        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);


        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
